package com.imooc.service;

import com.imooc.BO.ShopCartBO;
import com.imooc.BO.SubmitOrderBO;
import com.imooc.pojo.OrderStatus;
import com.imooc.vo.OrderVO;

import java.util.List;

/**
 * @author gcq
 * @Create 2022-01-08
 */
public interface OrderService {

    OrderVO createOrder(SubmitOrderBO submitOrderBO, List<ShopCartBO> shopCartList);

    /**
     * 更新订单状态
     * @param orderId
     * @param orderStatus
     */
    public void updateOrderStatus(String orderId, Integer orderStatus);

    /**
     * 根据 OrderId 查询订单状态
     * @param orderId
     * @return
     */
    OrderStatus queryOrderStatusInfo(String orderId);

    /**
     * 关闭超时未支付订单
     */
    public void closeOrder();
}
